package crm7test;

import com.Utils.RSAUtils;

public class RSA1 {
	public static void main(String[] args){
		String  publicKey = "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCUYknlVL6+c+HCkTR05iWfuyNWouxbx7n7PMT+KreA/A7J9ZPQitafUrI08rUFMeg/zbCA58j2TtYjg1aNu6J7geaesnD0ejruTqZR3cvCG3CxZAu123P5Tj69BMcpANmLRgWCXWZG2xpTFCogH7usVp5NnpSIGProGCDrzPCcUwIDAQAB";
		String  appType="{'appType':WECHAT}";
		String data=null;
		try {
			data=RSAUtils.encryptByPublicKey(appType, publicKey);
		}catch(Exception e){
			System.out.println("error");
			
		}
		
		System.out.println(data);
		
		
		
	}


}
